#ifndef FCSCOMM_H
#define FCSCOMM_H

#include <string>
#include <stdint.h>

class SerialPort;

class FcsComm
{
public:
	FcsComm(void);
	~FcsComm();
	void setInterface(SerialPort *fcs);
	bool doCycle(void);

private:
	void request(uint8_t *data, int datasize);
	int response(uint8_t *data, int datasize);

	void printDebugInfo(uint8_t *data, int datasize);

	SerialPort *fcs_;
	uint8_t *data_;
	
	static const int datasize_;
	static const uint8_t addr_;
	static const uint8_t id_;
	static const uint8_t dbg_id_;
};


#endif
